<template>
  <view class="page-body">
    <!--		<PageTab :tabData="bodyData.tab" v-if="bodyData.tab" @tab-filter="handleTabFilter" />
        <PageCrumb :crumbData="bodyData.crumb" v-if="bodyData.crumb" @crumb-filter="handleCrumbFilter" />-->
    <scroll-view scroll-y="true" style="height: 100%;">
      <view class="list">
        <slot name="item"></slot>
        <view style="height: 30upx"></view>
      </view>
    </scroll-view>
  </view>
</template>

<script>
/**
 * 主页面 - 主体
 */
export default {
  name: "page-body"
}
</script>

<script setup>
import PageTab from "@/frame/components/page-tab/index.vue"
import PageCrumb from "@/frame/components/page-crumb/index.vue"
import {
  ref
} from "vue"

/**
 * props传入
 */
const props = defineProps({
  bodyData: {}
})

/**
 * 初始化数据
 */
const bodyData = props.bodyData

/**
 * 获取tab值
 */
const tabValue = ref()
const handleTabFilter = (value) => {
  tabValue.value = value
}

/**
 * 获取crumb值
 */
const crumbValue = ref()
const handleCrumbFilter = (value) => {
  crumbValue.value = value
}
</script>

<style lang="scss" scoped src="./index.scss">

</style>